# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=neatvi
pkgver=15
pkgrel=0
pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
url="https://github.com/aligrudi/neatvi"
arch="all"
license="ISC" # vi.c
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/neatvi/archive/$pkgver.tar.gz
	conf.patch
	"

build() {
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

check() {
	./test.sh
}

package() {
	install -Dm755 vi "$pkgdir"/usr/bin/neatvi
	install -Dm644 README -t "$pkgdir"/usr/share/doc/neatvi
}

sha512sums="
d738a3b22f4887be08e8681d4901d3b5e76484d7bf5d89a7b912ec5fc1c52e9bfb64b97f73dc2916c3e3e2cc262e147ca5274d6c625db8c4b44a64a00b6742f2  neatvi-15.tar.gz
c8d0bf442ea27c04649cd40446a7e3c43aa76e4901bbf853f0307bf3cedf7f253371b967cfe559e027dd2ccc47e00462e7016b47b6ff6f13d855ae7613f4290f  conf.patch
"
